I just made the update for Swift 5 on my macbook and for now I can't run any code with Xcode, it gives me the following output during runtime (the building is ok).
I already tried to:
Clean the solution. and build again
Make the RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks".
Make the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES.
Make the EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES
Here the code I try to run:
import Foundation
print("Hello World")
Output:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/***/Documents/MyProject/Build/Products/Debug/MyProject
Reason: image not found
Expected output:
Hello World
I'm sorry, I just found the solution to the problem.
If that occurs to someone you only have to download the swift 5 runtime support.
It seems to be that the runtime virtual machine for swift5 is not the same than for swift4
the swift 5 runtime support.cannot install to Mac OS 10.14.4,how to solve it?